<template>
  <div>
    {{$route.params.id}}
  </div>
</template>

<script>
  export default {
    validate({params}) {// 404
      console.log(params);
      return /^\d+$/.test(params.id)
    },

    created() {
      console.log(this.$route);
    },
    name: "detail_id"
  }
</script>

<style scoped>

</style>
